#pragma once
#include "afxwin.h"


// CComponentAdd dialog

class CComponentAdd : public CDialogEx
{
	DECLARE_DYNAMIC(CComponentAdd)

public:
	CComponentAdd(CWnd* pParent, CMeasureProject& project, int type);   // standard constructor
	virtual ~CComponentAdd();

// Dialog Data
	enum { IDD = IDD_COMPONENT_ADD };
  enum { kStation, kItem, kLine, kArc, kModel, kSerial, kIntermediate, kBox };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
  virtual BOOL OnInitDialog();

public:
  tstring Name(void) { return name_.GetBuffer(0); }

private:
  CMeasureProject& project_;
  int type_;
  CString name_;
  CComboBox wnd_component_list_;
};
